import request from '@/utils/request'

export const addNote = data => {
  return request({
    url:'/oa/notes',
    method: 'post',
    data
  })
}

//获取可申请的项目
export const noteList = query =>{
  return request({
    url:'/oa/notes',
    method: 'get',
    params: query,
  })
}

export const updateNote = data => {
  return request({
    url:`/oa/notes/${data.id}`,
    method: 'put',
    data
  })
}

export const delNote = data => {
  return request({
    url:`/oa/notes/${data.id}`,
    method: 'delete',
    data
  })
}
